sm: launcher: rename update instances to run instances#535
sm: launcher: rename update instances to run instances#535mlohvynenko merged 1 commit intoaosedge:feature_release_9.1from
Conversation
1baadee to
98c3fc6
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature_release_9.1 #535 +/- ##
=======================================================
- Coverage 85.21% 85.21% -0.01%
=======================================================
Files 313 313
Lines 28182 28211 +29
Branches 3773 3780 +7
=======================================================
+ Hits 24015 24039 +24
- Misses 4167 4172 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR updates the Service Manager launcher API from “update instances (stop/start lists)” to “run instances (desired set)”, moving stop/start decision-making and start ordering (by priority) into the launcher implementation.
Changes:
- Renamed launcher interface method from
UpdateInstances(...)toRunInstances(instances). - Updated SM launcher implementation to derive stop/start sets internally and to sort desired instances by priority before starting.
- Refactored and renamed SM launcher tests/mocks to match the new API.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/core/sm/tests/mocks/launchermock.hpp |
Updates mock interface to RunInstances(...). |
src/core/sm/launcher/tests/launcher.cpp |
Renames tests and switches calls from UpdateInstances to RunInstances. |
src/core/sm/launcher/launcher.hpp |
Updates public API + internal helpers/state to support “desired set” flow. |
src/core/sm/launcher/launcher.cpp |
Implements RunInstances, adds sorting and internal stop-list derivation. |
src/core/sm/launcher/itf/launcher.hpp |
Updates launcher interface contract to RunInstances(...). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7d85bdf to
9f445ca
Compare
79d1152 to
febcb95
Compare
9f445ca to
a45d5aa
Compare
MykolaSuperman
left a comment
There was a problem hiding this comment.
Reviewed-by: Mykola Solianko <mykola_solianko@epam.com>
al1img
left a comment
There was a problem hiding this comment.
Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
This patch updated launcher interface to handle run instances instead of update instances: - a list of desired run instances is passed to the launcher instead stop and start instances lists; - the launcher is responsible for stopping and starting instances based on the provided list of desired run instances; - instances are started based on the desired run instances priorities. Signed-off-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com> Reviewed-by: Mykola Solianko <mykola_solianko@epam.com> Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
a45d5aa to
b7b376b
Compare
|




This patch updated launcher interface to handle
run instances instead of update instances: